﻿#region Librerias

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

#endregion


namespace ESF.General.Entity
{
	public class FileInfoData
	{
		#region Miembros

		public DateTime LastWriteDateTime { set; get; }

		public DateTime CreationDateTime { set; get; }

		public string FullName { set; get; }

		public long Length { set; get; }

		private FileInfo _OriginalFileInfo;
		
		//public FileInfo OriginalFileInfo { get { return _OriginalFileInfo; } }

		#endregion


		#region Constructor

		private FileInfoData() { }


		public FileInfoData(string pFileName) : this(new FileInfo(pFileName)) { }


		public FileInfoData(FileInfo pFileInfo)
		{
			//_OriginalFileInfo = pFileInfo;

			LastWriteDateTime = pFileInfo.LastWriteTime;

			CreationDateTime = pFileInfo.CreationTime;

			FullName = pFileInfo.FullName;

			Length = pFileInfo.Length;
		}

		#endregion
	}
}
